import request from "../utils/server/requst"

// student页面获取所有的表格数据
export function getStuApi (params){
    return request({
        url:'/studata',
        method:'get',//get请求对应的是params  post对应的是data
        params:params 
    })
}

// student页面单条删除
export function deleteStuApi(params){
    return request({
        url:'/studelete',
        method:'post',//get请求对应的是params  post对应的是data
        data:params 
    })
}

// student页面修改操作
export function updateStuApi(params){
    return request({
        url:'/updatestu',
        method:'post',//get请求对应的是params  post对应的是data
        data:params 
    })
}

//批量删除
export function delHomeApi (params){
    return request({
        url:'/deldeldata',
        method:'post',
        data:params
    })
}